package com.richapp.launcher.database.system.mode;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * Created by jack on 2015/5/15 0015.
 */

@DatabaseTable(tableName = "boxPhone")
public class BoxPhone {

    @DatabaseField(generatedId = true)
    private int id;     //自增主键

    @DatabaseField(columnName = "boxCpuId",canBeNull = false,uniqueCombo = true)
    private String boxCpuId;        //机顶盒CPU ID

    @DatabaseField(columnName = "userName")
    private String userName;        //用户名

    @DatabaseField(columnName = "phoneUid",canBeNull = false,uniqueCombo = true)
    private String phoneUid;        //手机唯一识别码

    @DatabaseField(columnName = "phoneName")
    private String phoneName;       //手机名

    @DatabaseField(columnName = "phoneType",canBeNull = false,defaultValue = "android")
    private String phoneType;       //手机系统类型

    @DatabaseField(columnName = "rightful",canBeNull = false,defaultValue = "false")
    private String rightful;        //是否是合法用户

    @DatabaseField(columnName = "refuseFlag",canBeNull = false,defaultValue = "false")
    private String refuseFlag;      //是否被拒绝连接

    @DatabaseField(columnName = "isConnected",canBeNull = false,defaultValue = "false")
    private String isConnected;     //是否连接

    public BoxPhone(){

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBoxCpuId() {
        return boxCpuId;
    }

    public void setBoxCpuId(String boxCpuId) {
        this.boxCpuId = boxCpuId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhoneUid() {
        return phoneUid;
    }

    public void setPhoneUid(String phoneUid) {
        this.phoneUid = phoneUid;
    }

    public String getPhoneName() {
        return phoneName;
    }

    public void setPhoneName(String phoneName) {
        this.phoneName = phoneName;
    }

    public String getPhoneType() {
        return phoneType;
    }

    public void setPhoneType(String phoneType) {
        this.phoneType = phoneType;
    }

    public String getRightful() {
        return rightful;
    }

    public void setRightful(String rightful) {
        this.rightful = rightful;
    }

    public String getRefuseFlag() {
        return refuseFlag;
    }

    public void setRefuseFlag(String refuseFlag) {
        this.refuseFlag = refuseFlag;
    }

    public String getIsConnected() {
        return isConnected;
    }

    public void setIsConnected(String isConnected) {
        this.isConnected = isConnected;
    }
}
